------------------------------
-- Hyperion                 --
-- October 13, 2012         --
-- Compact. Sleek. Modular. --
------------------------------

-- Sends all files to the client --
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "sh_init.lua" )
AddCSLuaFile( "core/shared/sh_plugins.lua" )
AddCSLuaFile( "core/shared/sh_schemas.lua" )

-- Includes all files serverside --
include( "sh_init.lua" )
include( "core/server/sv_chat.lua" ) -- NOTE: This had to be added before the schema is loaded, since we want the player to be able to set chat commands in the schema

-- Loads the schema of your choosing --
-- NOTE: This had to be added before all core files in order for the config to work properly --
Hyperion.Schemas.Load( "skeleton" )

include( "core/server/sv_mysql.lua" )
include( "core/server/sv_sqlite.lua" )
include( "core/server/sv_datahandler.lua" )

-- Sets the script's name --
GM.Name = "Hyperion :: " .. Hyperion.Schema.Name

-- Handles what happens when the player spawns for the first time --
function GM:PlayerInitialSpawn( ply )
end

-- Handles what happens when the player spawns --
function GM:PlayerSpawn( ply )
end

-- Handles what happens when the player disconnects --
function GM:PlayerDisconnected( ply )
end